﻿<%@ Page Title="login_log" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeBehind="List.aspx.cs" Inherits="lcmyjobs.Web.login_log.List" %>

<%@ Register assembly="AspNetPager" namespace="Wuqi.Webdiyer" tagprefix="webdiyer" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script language="javascript" src="../js/CheckBox.js" type="text/javascript"></script>
    <link href="../../css/AdminFrame.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="rightCenter">
        <div class="rightBack">
            <div class="rightContentTop">
                <ul>
                    <li><a href="../SetWebSite.aspx">网站参数</a> </li>
                    <li><a href="../admininfo/Modify.aspx">修改密码</a> </li>
                    <li class="cur"><a href="List.aspx">登陆日志</a> </li>
                </ul>
            </div>
            <div class="rightContentMiddle">
                <!--Title -->
                <!--Title end -->
                <!--Add  -->
                <!--Add end -->
                <!--Search -->
                <table style="width: 100%;" cellpadding="2" cellspacing="1" class="border">
                    <tr>
                        <td style="width: 80px" align="right" class="tdbg">
                            &nbsp;
                        </td>
                        <td class="tdbg">
                            <asp:TextBox ID="txtKeyword" runat="server" Visible="False"></asp:TextBox>
                            &nbsp;&nbsp;&nbsp;&nbsp;
                            <asp:Button ID="btnSearch" runat="server" Text="查询" OnClick="btnSearch_Click" Visible="False">
                            </asp:Button>
                        </td>
                        <td class="tdbg">
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 80px" align="right" class="tdbg">
                            &nbsp;
                        </td>
                        <td class="tdbg">
                            &nbsp;</td>
                        <td class="tdbg">
                            &nbsp;
                        </td>
                    </tr>
                </table>
                <!--Search end-->
                <br />
                <div style="margin: 0 auto; width:80%; height:auto; overflow:auto;">
                    <asp:GridView ID="gridView" runat="server" Width="100%" CellPadding="3" OnPageIndexChanging="gridView_PageIndexChanging"
                        BorderWidth="1px" BorderColor="#BBE0EA" DataKeyNames="id" OnRowDataBound="gridView_RowDataBound" AutoGenerateColumns="False"
                        RowStyle-HorizontalAlign="Center" OnRowCreated="gridView_OnRowCreated" EnableModelValidation="True">
                        <Columns>
                            <asp:TemplateField ControlStyle-Width="30" HeaderText="选择" Visible="False">
                                <ItemTemplate>
                                    <asp:CheckBox ID="DeleteThis" onclick="javascript:CCA(this);" runat="server" />
                                </ItemTemplate>
                                <ControlStyle Width="30px"></ControlStyle>
                            </asp:TemplateField>
                            <asp:BoundField DataField="login_ip" HeaderText="登陆地址" SortExpression="login_ip"
                                ItemStyle-HorizontalAlign="Center">
                                <ItemStyle HorizontalAlign="Center"></ItemStyle>
                            </asp:BoundField>
                            <asp:BoundField DataField="login_time" HeaderText="登陆时间" SortExpression="login_time"
                                ItemStyle-HorizontalAlign="Center">
                                <ItemStyle HorizontalAlign="Center"></ItemStyle>
                            </asp:BoundField>
                            <asp:BoundField DataField="login_name" HeaderText="登陆名" SortExpression="login_name"
                                ItemStyle-HorizontalAlign="Center">
                                <ItemStyle HorizontalAlign="Center"></ItemStyle>
                            </asp:BoundField>
                            <asp:HyperLinkField HeaderText="详细" ControlStyle-Width="50" DataNavigateUrlFields="id"
                                DataNavigateUrlFormatString="Show.aspx?id={0}" Text="详细" Visible="False">
                                <ControlStyle Width="50px"></ControlStyle>
                            </asp:HyperLinkField>
                            <asp:HyperLinkField HeaderText="编辑" ControlStyle-Width="50" DataNavigateUrlFields="id"
                                DataNavigateUrlFormatString="Modify.aspx?id={0}" Text="编辑" Visible="False">
                                <ControlStyle Width="50px"></ControlStyle>
                            </asp:HyperLinkField>
                            <asp:TemplateField ControlStyle-Width="50" HeaderText="删除" Visible="false">
                                <ItemTemplate>
                                    <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" CommandName="Delete"
                                        Text="删除"></asp:LinkButton>
                                </ItemTemplate>
                                <ControlStyle Width="50px"></ControlStyle>
                            </asp:TemplateField>
                        </Columns>
                        <RowStyle HorizontalAlign="Center" Height="35px"></RowStyle>
                        <HeaderStyle Height="30px" />
                    </asp:GridView>

                    
                        <webdiyer:AspNetPager ID="AspNetPager1" runat="server" AlwaysShow="True" CurrentPageButtonPosition="Center"
                            PageSize="15" AlwaysShowFirstLastPageNumber="True" CustomInfoTextAlign="left"
                    FirstPageText="首页" LastPageText="尾页" NextPageText="下一页" NumericButtonCount="10"
                    PrevPageText="上一页" CssClass="paginator" CurrentPageButtonClass="" CustomInfoHTML="第 %CurrentPageIndex% 页 共 %PageCount%页 %RecordCount%条记录 "
                    LayoutType="Table" ShowCustomInfoSection="left" ShowNavigationToolTip="True"
                    ShowPageIndexBox="Always" PageIndexBoxType="DropDownList" TextAfterPageIndexBox="&nbsp;页"
                    TextBeforePageIndexBox="转到第" onpagechanged="AspNetPager1_PageChanged">
                        </webdiyer:AspNetPager>
                    
                </div>
                <table border="0" cellpadding="0" cellspacing="1" style="width: 100%;">
                    <tr>
                        <td style="width: 1px;">
                            &nbsp;</td>
                        <td style=" text-align:center; height:32px;">
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td style="width: 1px;">
                        </td>
                        <td style=" text-align:center; height:32px;">
                        <div style=" width:150px; margin:0 auto;">
                            <asp:Button ID="btnDelete" CssClass="bgbtn" runat="server" Text="删除" OnClick="btnDelete_Click" Visible="false"/></div>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
    </div>
</asp:Content>
<%--<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceCheckright" runat="server">
</asp:Content>--%>
